package net.seabookchen.dao;

import java.util.List;

import net.seabookchen.pojo.BlogTag;

import com.googlecode.objectify.ObjectifyService;
import com.googlecode.objectify.Query;

public class BlogTagDao extends ObjectifyGenericDao<BlogTag> {
	
	static {
		ObjectifyService.register(BlogTag.class);
	}

	public BlogTagDao(Class<BlogTag> clazz) {
		super(clazz);
	}

	public List<BlogTag> listTags() {
		Query<BlogTag> tags = ofy().query(BlogTag.class);
		return deadOrLive(tags);
	}
	
}
